﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UsergroupDetailAdd.ascx.cs" Inherits="TCDC_System.UserControl.UsergroupDetailAdd" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<style type="text/css">
     .icon-exclamation
     {
          padding-left: 25px !important;
          background: url(../../Attribute/images/icons/System/exclamation.png) no-repeat 3px 3px !important; 
     }
     .icon-accept
     {
          padding-left: 25px !important;
          background: url(../../Attribute/images/icons/System/accept.png) no-repeat 3px 3px !important;
     }
</style>
<ext:Window ID="WindowUsergroupDetailAdd" runat="server" Icon="Group" Title="UsergroupDetail" 
     Width="600" Height="400" AutoShow="false" Modal="true" Hidden="true" Layout="Fit">
     <TopBar>
          <ext:Toolbar ID="Toolbar1" runat="server">
               <Items>
                    <ext:ToolbarFill ID="ToolbarFill1" runat="server"/>
                    <ext:Button ID="btnSaveRecord" runat="server" Icon="Disk" Text="Save">
                         <DirectEvents>
                              <Click OnEvent="SaveUsergroupDetail" Before="return #{FormPanel1}.getForm().isValid();"> 
                                   <EventMask ShowMask="true"/>
                              </Click>
                         </DirectEvents>
                    </ext:Button>
               </Items>
          </ext:Toolbar>
     </TopBar>
     <Items>
          <ext:FormPanel ID="FormPanel1"
               runat = "server"
               Padding = "5"
               Frame = "true"
               LabelWidth = "150"
               MonitorValid = "true"
               Width = "500"
               DefaultAnchor = "-20"
               Height="230">
               <Items>
                    <ext:NumberField ID="txt_usergroup_id" runat="server" FieldLabel="usergroup_id" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
                    <ext:NumberField ID="txt_user_id" runat="server" FieldLabel="user_id" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
                    <ext:DateField ID="txt_begin_date" runat="server" FieldLabel="begin_date" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
                    <ext:DateField ID="txt_end_date" runat="server" FieldLabel="end_date" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
                    <ext:DateField ID="txt_create_date" runat="server" FieldLabel="create_date" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
                    <ext:NumberField ID="txt_create_by" runat="server" FieldLabel="create_by" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
                    <ext:DateField ID="txt_update_date" runat="server" FieldLabel="update_date" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
                    <ext:NumberField ID="txt_update_by" runat="server" FieldLabel="update_by" Width="300" 
                         AllowBlank="false" MsgTarget="Title" />
               </Items>
               <BottomBar>
                    <ext:StatusBar ID="StatusBar1" runat="server" Height="25"/>
               </BottomBar>
               <Listeners>
                    <ClientValidation Handler="this.getBottomToolbar().setStatus({text : valid ? 'Form is valid' : 'Form is invalid', iconCls: valid ? 'icon-accept' : 'icon-exclamation'});"/>
               </Listeners>
          </ext:FormPanel>
     </Items>
</ext:Window>

